package com.local.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class LocalCarInRepertoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LocalCarInRepertoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidIsNull() {
            addCriterion("car_in_uuid is null");
            return (Criteria) this;
        }

        public Criteria andCarInUuidIsNotNull() {
            addCriterion("car_in_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andCarInUuidEqualTo(String value) {
            addCriterion("car_in_uuid =", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidNotEqualTo(String value) {
            addCriterion("car_in_uuid <>", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidGreaterThan(String value) {
            addCriterion("car_in_uuid >", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidGreaterThanOrEqualTo(String value) {
            addCriterion("car_in_uuid >=", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidLessThan(String value) {
            addCriterion("car_in_uuid <", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidLessThanOrEqualTo(String value) {
            addCriterion("car_in_uuid <=", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidLike(String value) {
            addCriterion("car_in_uuid like", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidNotLike(String value) {
            addCriterion("car_in_uuid not like", value, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidIn(List<String> values) {
            addCriterion("car_in_uuid in", values, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidNotIn(List<String> values) {
            addCriterion("car_in_uuid not in", values, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidBetween(String value1, String value2) {
            addCriterion("car_in_uuid between", value1, value2, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInUuidNotBetween(String value1, String value2) {
            addCriterion("car_in_uuid not between", value1, value2, "carInUuid");
            return (Criteria) this;
        }

        public Criteria andCarInTimeIsNull() {
            addCriterion("car_in_time is null");
            return (Criteria) this;
        }

        public Criteria andCarInTimeIsNotNull() {
            addCriterion("car_in_time is not null");
            return (Criteria) this;
        }

        public Criteria andCarInTimeEqualTo(Date value) {
            addCriterionForJDBCDate("car_in_time =", value, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("car_in_time <>", value, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("car_in_time >", value, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("car_in_time >=", value, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeLessThan(Date value) {
            addCriterionForJDBCDate("car_in_time <", value, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("car_in_time <=", value, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeIn(List<Date> values) {
            addCriterionForJDBCDate("car_in_time in", values, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("car_in_time not in", values, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("car_in_time between", value1, value2, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarInTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("car_in_time not between", value1, value2, "carInTime");
            return (Criteria) this;
        }

        public Criteria andCarNoIsNull() {
            addCriterion("car_no is null");
            return (Criteria) this;
        }

        public Criteria andCarNoIsNotNull() {
            addCriterion("car_no is not null");
            return (Criteria) this;
        }

        public Criteria andCarNoEqualTo(String value) {
            addCriterion("car_no =", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoNotEqualTo(String value) {
            addCriterion("car_no <>", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoGreaterThan(String value) {
            addCriterion("car_no >", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoGreaterThanOrEqualTo(String value) {
            addCriterion("car_no >=", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoLessThan(String value) {
            addCriterion("car_no <", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoLessThanOrEqualTo(String value) {
            addCriterion("car_no <=", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoLike(String value) {
            addCriterion("car_no like", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoNotLike(String value) {
            addCriterion("car_no not like", value, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoIn(List<String> values) {
            addCriterion("car_no in", values, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoNotIn(List<String> values) {
            addCriterion("car_no not in", values, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoBetween(String value1, String value2) {
            addCriterion("car_no between", value1, value2, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarNoNotBetween(String value1, String value2) {
            addCriterion("car_no not between", value1, value2, "carNo");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidIsNull() {
            addCriterion("car_type_uuid is null");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidIsNotNull() {
            addCriterion("car_type_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidEqualTo(String value) {
            addCriterion("car_type_uuid =", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidNotEqualTo(String value) {
            addCriterion("car_type_uuid <>", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidGreaterThan(String value) {
            addCriterion("car_type_uuid >", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidGreaterThanOrEqualTo(String value) {
            addCriterion("car_type_uuid >=", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidLessThan(String value) {
            addCriterion("car_type_uuid <", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidLessThanOrEqualTo(String value) {
            addCriterion("car_type_uuid <=", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidLike(String value) {
            addCriterion("car_type_uuid like", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidNotLike(String value) {
            addCriterion("car_type_uuid not like", value, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidIn(List<String> values) {
            addCriterion("car_type_uuid in", values, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidNotIn(List<String> values) {
            addCriterion("car_type_uuid not in", values, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidBetween(String value1, String value2) {
            addCriterion("car_type_uuid between", value1, value2, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andCarTypeUuidNotBetween(String value1, String value2) {
            addCriterion("car_type_uuid not between", value1, value2, "carTypeUuid");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNull() {
            addCriterion("pay_type is null");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNotNull() {
            addCriterion("pay_type is not null");
            return (Criteria) this;
        }

        public Criteria andPayTypeEqualTo(String value) {
            addCriterion("pay_type =", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotEqualTo(String value) {
            addCriterion("pay_type <>", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThan(String value) {
            addCriterion("pay_type >", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThanOrEqualTo(String value) {
            addCriterion("pay_type >=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThan(String value) {
            addCriterion("pay_type <", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThanOrEqualTo(String value) {
            addCriterion("pay_type <=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLike(String value) {
            addCriterion("pay_type like", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotLike(String value) {
            addCriterion("pay_type not like", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeIn(List<String> values) {
            addCriterion("pay_type in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotIn(List<String> values) {
            addCriterion("pay_type not in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeBetween(String value1, String value2) {
            addCriterion("pay_type between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotBetween(String value1, String value2) {
            addCriterion("pay_type not between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterionForJDBCDate("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterionForJDBCDate("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterionForJDBCDate("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeIsNull() {
            addCriterion("expire_time is null");
            return (Criteria) this;
        }

        public Criteria andExpireTimeIsNotNull() {
            addCriterion("expire_time is not null");
            return (Criteria) this;
        }

        public Criteria andExpireTimeEqualTo(Date value) {
            addCriterionForJDBCDate("expire_time =", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("expire_time <>", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("expire_time >", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("expire_time >=", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeLessThan(Date value) {
            addCriterionForJDBCDate("expire_time <", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("expire_time <=", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeIn(List<Date> values) {
            addCriterionForJDBCDate("expire_time in", values, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("expire_time not in", values, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("expire_time between", value1, value2, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("expire_time not between", value1, value2, "expireTime");
            return (Criteria) this;
        }

        public Criteria andOpenTypeIsNull() {
            addCriterion("open_type is null");
            return (Criteria) this;
        }

        public Criteria andOpenTypeIsNotNull() {
            addCriterion("open_type is not null");
            return (Criteria) this;
        }

        public Criteria andOpenTypeEqualTo(Byte value) {
            addCriterion("open_type =", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeNotEqualTo(Byte value) {
            addCriterion("open_type <>", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeGreaterThan(Byte value) {
            addCriterion("open_type >", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("open_type >=", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeLessThan(Byte value) {
            addCriterion("open_type <", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeLessThanOrEqualTo(Byte value) {
            addCriterion("open_type <=", value, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeIn(List<Byte> values) {
            addCriterion("open_type in", values, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeNotIn(List<Byte> values) {
            addCriterion("open_type not in", values, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeBetween(Byte value1, Byte value2) {
            addCriterion("open_type between", value1, value2, "openType");
            return (Criteria) this;
        }

        public Criteria andOpenTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("open_type not between", value1, value2, "openType");
            return (Criteria) this;
        }

        public Criteria andChargeUuidIsNull() {
            addCriterion("charge_uuid is null");
            return (Criteria) this;
        }

        public Criteria andChargeUuidIsNotNull() {
            addCriterion("charge_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andChargeUuidEqualTo(String value) {
            addCriterion("charge_uuid =", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidNotEqualTo(String value) {
            addCriterion("charge_uuid <>", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidGreaterThan(String value) {
            addCriterion("charge_uuid >", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidGreaterThanOrEqualTo(String value) {
            addCriterion("charge_uuid >=", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidLessThan(String value) {
            addCriterion("charge_uuid <", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidLessThanOrEqualTo(String value) {
            addCriterion("charge_uuid <=", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidLike(String value) {
            addCriterion("charge_uuid like", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidNotLike(String value) {
            addCriterion("charge_uuid not like", value, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidIn(List<String> values) {
            addCriterion("charge_uuid in", values, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidNotIn(List<String> values) {
            addCriterion("charge_uuid not in", values, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidBetween(String value1, String value2) {
            addCriterion("charge_uuid between", value1, value2, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andChargeUuidNotBetween(String value1, String value2) {
            addCriterion("charge_uuid not between", value1, value2, "chargeUuid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status_ is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status_ is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status_ =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status_ <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status_ >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status_ >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status_ <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status_ <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status_ in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status_ not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status_ between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status_ not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andAttrIsNull() {
            addCriterion("attr_ is null");
            return (Criteria) this;
        }

        public Criteria andAttrIsNotNull() {
            addCriterion("attr_ is not null");
            return (Criteria) this;
        }

        public Criteria andAttrEqualTo(String value) {
            addCriterion("attr_ =", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrNotEqualTo(String value) {
            addCriterion("attr_ <>", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrGreaterThan(String value) {
            addCriterion("attr_ >", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrGreaterThanOrEqualTo(String value) {
            addCriterion("attr_ >=", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrLessThan(String value) {
            addCriterion("attr_ <", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrLessThanOrEqualTo(String value) {
            addCriterion("attr_ <=", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrLike(String value) {
            addCriterion("attr_ like", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrNotLike(String value) {
            addCriterion("attr_ not like", value, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrIn(List<String> values) {
            addCriterion("attr_ in", values, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrNotIn(List<String> values) {
            addCriterion("attr_ not in", values, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrBetween(String value1, String value2) {
            addCriterion("attr_ between", value1, value2, "attr");
            return (Criteria) this;
        }

        public Criteria andAttrNotBetween(String value1, String value2) {
            addCriterion("attr_ not between", value1, value2, "attr");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}